import { PrimaryUuid, Entity, Boolean, Code, Title, RichText, CreateDate, UpdateDate, DateTime, Uuid, Cover, AutoIncrementId } from "../utils";

@Entity({
    name: 'fuli_news'
})
export class FuliNews {
    @PrimaryUuid()
    id: string;

    @Boolean()
    status: boolean;

    @Code()
    from: string;

    @Title()
    title: string;

    @Code()
    type: string;

    @Cover({nullable: true})
    cover: string;

    @Uuid({nullable: true})
    good_id: string;

    @RichText()
    content: string;

    @DateTime()
    apply_time: Date;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    udpate_date: Date;

    @Uuid({nullable: true})
    create_user_id: string;

    @AutoIncrementId()
    news_id: number;
}